﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework.Content;

using VTESCore;

namespace VTESCustomContentReaders
{
	public class LibraryCardContentReader : ContentTypeReader<LibraryCard>
	{
		protected override LibraryCard Read( ContentReader input, LibraryCard existingInstance )
		{
			LibraryCard card = new LibraryCard();

			card.Artist					= input.ReadString();
			card.Banned					= input.ReadBoolean();
			card.BloodCost				= input.ReadInt32();
			card.BurnOption				= input.ReadBoolean(); 
			card.CardArtPath			= input.ReadString();
			card.CardText				= input.ReadString();
			card.CardTypes				= input.ReadObject<List<CardType>>();
			card.ClanRequirements		= input.ReadObject<List<Clan>>();
			card.ConvictionCost			= input.ReadInt32();
			card.DisciplineRequirements = input.ReadObject<List<Discipline>>();
			card.FlavourText			= input.ReadString();
			card.Name					= input.ReadString();
			card.OtherRequirements		= input.ReadString();
			card.PoolCost				= input.ReadInt32();
			card.Set					= input.ReadObject<ReleaseSet>();

			return card;
		}
	}
}
